﻿seajs.config({
    base: './js/',
    alias: {
        'labjs': 'lib/LAB.min',
        'css': '/app/style/'
    }
});

define(function (require) {
    require('css/site.css');

    require('labjs');

    // 载入基础lib
    $LAB.script('js/lib/jquery-1.6.1.min.js').wait()
        .script('js/lib/jquery-ui-1.8.13.custom.min.js').wait()
        .script('js/lib/jquery.ba-postmessage.js').wait(function () {
            $(function () {
                $('#mainContainer')
                .draggable()
                .click(function () {
                    $.postMessage('normal', '*', parent);
                });
            });
        });
});